package com.concurrentlearn;

/**
 * Created by Lxk on 2019/12/1.
 */
public class SimpleCalculator implements CalculatorStrategy {

    private static final double SALARY_RATE = 0.1;

    private static final double BONUS_RATE = 0.15;

    @Override
    public double calculateTax(double salary, double bonus) {
        return salary * SALARY_RATE + bonus * BONUS_RATE;
    }
}
